<?php 
error_reporting(E_ALL);
            ini_set('display_errors','On');
// echo $this->js->ajax("ok","/mvc/blog/create");
$this->layout = '~/views/shared/_defaultLayout.php';
?>
<div class="block bgWhite">
	<div class="content"><div id='bloglist'></div></div>
</div>

<div class="block bgWhite">
	<div class="content">
  	<?php 
    print_r($this->session->read('user')); ?>
	</div>
	<div class="content">
  <div class="row header_row">
  <div class="col-xs-6 col-md-4 interest"><h2>Create a Course</h2></div>
</div>  
	<div class="row">
	<?php 
              $unserialize_meta=unserialize($getsubject['meta_value']);
              print_r($unserialize_meta['mytext']);
              
                ?>	

  <div class="col-xs-6 col-sm-3">

  	<img src="<?php echo $cfg['site']['address'] . '/uploads/'. $getcoursefields['image'] ?>" width="150" alt="" name="image" />
  </div>
    <div class="col-xs-10 col-md-6">
    	<form class="form-horizontal" action="" role="form" method="post" enctype="multipart/form-data">
    	<input type="file" name="image" value=""  />
  <div class="form-group">

    <label for="inputEmail3" class="col-sm-2 control-label">Course Name : </label>
    <div class="col-sm-10">
    <select id="ms" multiple="multiple" name="name">
<?php  foreach ($unserialize_meta['mytext'] as $item) { ?>
<option value="" ><?php echo $item; ?></option>
<?php } ?>

        </select>

    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Overview/syllabus : </label>
    <div class="col-sm-10">
      <input type="text" class="form-control form1" id="inputEmail3" placeholder="" name="syllabus" value="<?php echo (isset($getcoursefields['syllabus'])) ? $getcoursefields['syllabus']:null ?>" />
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Eligibility : </label>
    <div class="col-sm-10">
      <input type="text" class="form-control form1" id="inputEmail3" placeholder="" name="eligibility" value="<?php echo (isset($getcoursefields['eligibility'])) ? $getcoursefields['eligibility']:null ?>" />
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Description : </label>
    <div class="col-sm-10">
      <input type="text" class="form-control form1" id="inputEmail3" placeholder="" name="descr" value="<?php echo (isset($getcoursefields['descr'])) ? $getcoursefields['descr']:null ?>" />
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Benefits : </label>
    <div class="col-sm-10">
      <input type="text" class="form-control form1" id="inputEmail3" placeholder="" name="benefits" value="<?php echo (isset($getcoursefields['benefits'])) ? $getcoursefields['benefits']:null ?>" />
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Duration : </label>
    <div class="col-sm-10">
      <input type="text" class="form-control form1" id="inputEmail3" placeholder="" name="start_date" value="<?php echo (isset($getcoursefields['start_date'])) ? $getcoursefields['start_date']:null ?>" />
      <input type="text" class="form-control form1" id="inputEmail3" placeholder="" name="end_date" value="<?php echo (isset($getcoursefields['end_date'])) ? $getcoursefields['end_date']:null ?>" />
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Fees : </label>
    <div class="col-sm-10">
      <input type="text" class="form-control form1" id="inputPassword3" name="fees" value="<?php echo (isset($getcoursefields['fees'])) ? $getcoursefields['fees']:null ?>" />
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Video : </label>
    <div class="col-sm-10">
      <input type="text" class="form-control form1" id="inputPassword3" name="video" value="<?php echo (isset($getcoursefields['video'])) ? $getcoursefields['video']:null ?>" />
    </div>
  </div>
  <br/>
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-primary" name="usersubmit" value="">Share</button>
    </div>
  </div>
<input type="hidden" name="user_id" value="1" />
<input type="hidden" name="meta_key" value="meta_key" />
<input type="hidden" name="id" value="<?php echo (isset($getcoursefields['id'])) ? $getcoursefields['id']:null ?>" />
</form>

    </div>
  <div class="col-xs-6 col-sm-3">
    <iframe width="200" height="100" src="<?php echo (isset($getcoursefields['video'])) ? $getcoursefields['video']:null ?>" name="" value="">
  </iframe>

  </div>
  </div>
  
</div>